package com.pig4cloud.pig.yin.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 联络信息表
 *
 * @author pig
 * @date 2025-07-29 11:02:46
 */
@Data
@TableName("wz_contact_unit")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "联络信息表")
public class WzContactUnitEntity extends Model<WzContactUnitEntity> {


	/**
	* 主键
	*/
    @TableId(type = IdType.AUTO)
    @Schema(description="主键")
    private Long unitId;

	/**
	* 联络单位名称
	*/
    @Schema(description="联络单位名称")
    private String unitName;

	/**
	* 排序值
	*/
    @Schema(description="排序值")
    private Long sortOrder;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remark;

	/**
	* 创建人
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建人")
    private String createBy;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

	/**
	* 更新人
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新人")
    private String updateBy;

	/**
	* 更新时间
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新时间")
    private LocalDateTime updateTime;

	/**
	* 删除标记
	*/
    @TableLogic
		@TableField(fill = FieldFill.INSERT)
    @Schema(description="删除标记")
    private String delFlag;

	@TableField(exist = false)
	private List<WzContactUserEntity> userList;

	@TableField(exist = false)
	private Long userId;
}